package com.mars.app.exception;

import lombok.Data;

/**
 * Created by pengshuo on 2018/1/8 17:24
 * Description:
 * Modified By:
 * Version:
 *
 * @author pengshuo
 */
@Data
public class GlobalException extends RuntimeException{

    /**
     * 错误码
     */
    private String code;

    public GlobalException() {
        super();
    }

    public GlobalException(Throwable cause) {
        super(cause);
    }

    public GlobalException(String code, String message) {
        super(message);
        this.code = code;
    }

    public GlobalException(String code, String message, Throwable cause) {
        super(message,cause);
        this.code =code;
    }
}
